package com.example.administrator.nurse.util;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;

import com.example.administrator.nurse.R;

/**
 * Created by Administrator on 2016/4/3.
 */
public class ViewFactory {
    public static ImageView getImageView(Context context,int imgId){
        ImageView imageView= (ImageView) LayoutInflater.from(context).inflate(R.layout.banner,null);
        imageView.setImageResource(imgId);
        return imageView;
    }
}
